package com.ruoyi.project.tool.swagger.WorkerController;

import com.ruoyi.framework.aspectj.lang.annotation.SignatureValidation;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.system.domain.SysStartpage;
import com.ruoyi.project.system.service.ISysStartpageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@SignatureValidation
@RequestMapping("/mobileWorker/workStart/")
public class WorkStartController {
    @Autowired
    private ISysStartpageService sysStartpageService;
    /**
     * 工人端起始页显示
     * 传递 information_type = 2 工人
     * */
    @SignatureValidation
    @PostMapping("queryStartImg")
    public AjaxResult queryStartPage(@RequestBody SysStartpage sysStartpage){
        return AjaxResult.success(sysStartpageService.queryStartImg(sysStartpage));
    }
}
